﻿using Ndns.ServerHost.Abstractions;
using Ndns.ServerHost.Abstractions.Services;
using Ndns.ServerHost.Services;

namespace Ndns.ServerHost.Builder
{
    public static class ContextFactoryExtensions
    {

        public static IDnsServerHostBuilder UseDefaultContextFactory(this IDnsServerHostBuilder builder)
        {
            builder.ConfigureServices(services =>
            {
                services.Add<IContextFactoryService>(new ContextFactoryServiceImpl());
            });
            return builder;
        }
    }
}
